all: run

hello: hello.o sifive_u_default.lds
	riscv64-linux-gnu-ld -T sifive_u_default.lds -o hello hello.o

hello.o: hello.s
	riscv64-linux-gnu-as -o hello.o hello.s

run: hello
	qemu-system-riscv64 -nographic -machine sifive_u -bios none -kernel hello

clean:
	rm hello hello.o
